package javaBase.javaException;

/**
 * Created by Administrator on 2017/2/23 0023.
 */

/**
 * 自定义的异常
 */
public class WebException extends Exception {
    private static final long serialVersionUID = 1L;
    private String exceptionCode = "9999";

    public WebException() {
        super();
    }

    public WebException(String code) {
        super();
        if (code != null) {
            this.exceptionCode = code;
        }
    }

    public String getExceptionCode() {
        return exceptionCode;
    }

    public void setExceptionCode(String exceptionCode) {
        this.exceptionCode = exceptionCode;
    }
}
